<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${pageContext.request.contextPath }/css/base.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/css/info-mgt.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath }/css/WdatePicker.css" />
<title>网上招聘系统</title>
<style type="text/css">
	a:link {
 	font-size: 12px;
 	color: #000000;
	text-decoration: none;
	}
	a:visited {
	font-size: 12px;
	color: #000000;
 	text-decoration: none;
	}
	a:hover {
 	font-size: 12px;
 	color: #999999;
 	text-decoration: none;
	}
</style>
</head>
<body>
<div class="title"><h2>应聘信息</h2></div>

<div id="jobQueryResultTable" class="table-box">
	<table>
    	<thead>
        	<tr>
            	<th class="num">序号</th>
            	<th class="name">应聘工作</th>
                <th class="name">姓名</th>
                <th class="node">性别</th>
            	<th class="node">学校</th>
                <th class="node">专业</th>
                <th class="node">联系方式</th>
                <th class="node">薪资要求</th>
            </tr>
        </thead>
        <tbody>
        	<c:if test="${fn:length(dataList)== 0 }">
        		<tr>
            		<td class="num"></td>
                	<td class="node"></td>
                	<td class="node"></td>
                	<td class="name">${"还没有人来应聘" }</td>
                	<td class="node"></td>
                	<td class="name"></td>
                	<td class="node"></td>
                	<th class="node"></th>
            	</tr>
        	</c:if>
			<c:forEach items="${dataList }" var ="employee"  begin="0" varStatus="status">  
				<tr>
            		<td class="num">${status.count }</td>
                	<td class="name">${employee.job.title}</td>
            		<td class="name"><a style="color:blue" href="${pageContext.request.contextPath }/applicant/view/resume/${employee.resume.id }.action">${employee.resume.name}</a></td>
                	<td class="node">${employee.resume.sex}</td>
                	<td class="node">${employee.resume.school}</td>
                	<td class="node">${employee.resume.profession}</td>
                	<td class="node">${employee.resume.phone}</td>
                	<td class="node">
                		<c:if test="${employee.result == -1 }">
                			<font style="color : gray">已拒绝</font>
                			<a style="color:red" href="${pageContext.request.contextPath }/company/delete/employee/${companyId }/${employee.id }.action">&nbsp;&nbsp;删除</a>
                		</c:if>
                		<c:if test="${employee.result == 0 }">
                			<a style="color:blue" href="${pageContext.request.contextPath }/company/agree/employee/${companyId }/${employee.id }.action">同意</a>
                			<a style="color:blue" href="${pageContext.request.contextPath }/company/refuse/employee/${companyId }/${employee.id }.action">&nbsp;&nbsp;拒绝</a>
                		</c:if>
                		<c:if test="${employee.result == 1 }">
                			<font style="color : green">已同意</font>
                			<a style="color:red" href="${pageContext.request.contextPath }/company/delete/employee/${companyId }/${employee.id }.action">&nbsp;&nbsp;删除</a>
                		</c:if>
                	</td>
            	</tr>
      		</c:forEach>  
        </tbody>
    </table>
</div>
<div class="pagination ue-clear"></div>

</body>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/WdatePicker.js"></script>

<script type="text/javascript">
$("tbody").find("tr:odd").css("backgroundColor","#eff6fa");

</script>
</html>